﻿@model TaskManagement.Models.Project

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Admin.cshtml";
}

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)



        @Html.HiddenFor(model => model.ProjectID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProjectManagerID, "Personnels")
        </div>
        <div class="editor-field">
            @*@Html.EditorFor(model => model.ProjectManagerID)
            @Html.ValidationMessageFor(model => model.ProjectManagerID)*@
            @Html.DropDownList("ProjectManagerID", String.Empty)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CategoryId, "ProjectCategory")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CategoryId", String.Empty)
            @Html.ValidationMessageFor(model => model.CategoryId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateofCreate)
        </div>
        <div class="editor-field">
            
            @(Html.Kendo().DatePicker()
              .Name("DateofCreate")
              .HtmlAttributes(new { style = "width:220px" }))
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description, new {style = "width:500px;height:120px"})
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>

}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
